package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.UserLike;

import java.util.List;
import java.util.Map;

public interface ILikeService {

    /**
     * 查询用户有没有当前点赞对象
     * @param
     * @return
     */
    UserLike get(Long userId, Long likeId, Integer type);

    /**
     * 保存点赞
     * @param ul
     */
    Integer save(UserLike ul);


    /**
     * 删除点赞
     * @param userId
     * @param likeId
     * @param type
     */
    Integer delete(Long userId, Long likeId, Integer type);

    /**
     * 根据类型获取当前用户点赞
     * @param type
     * @return
     */
    List<UserLike> getUserLikeList(Long userId, Integer type);

    Map updateCommnetLikes(UserLike userLike);
}
